<template>
	<view>
		<view class="">
			<view class="m-h1" style="text-align: center;">
				子订单
			</view>
			<view class="" @tap="toBack()">
				<image class="nav-margin-back-img" src="../../static/back.png" mode="widthFix"></image>
			</view>
			
			<view class="o-bg-1" style="margin-top: 100rpx;">
				<view class="content o-bg-1" style="display: flex;align-items: center;">
					<text class="o-font-1">共 5 个子订单</text>
				</view>
			</view>
			
			<view class="">
				<view class="content" style="margin-top: 20rpx;display: flex;justify-content: space-between;">
					<view class="">
						<image style="width: 44rpx;height: 56rpx;position: relative;top: 10rpx;" src="../../static/order-1.png" mode="widthFix"></image>
						<text class="o-font-2">子订单1</text>
					</view>
					<view class="o-font-3" style="padding-top: 10rpx;">
						等待收货
					</view>
				</view>
				<view class="o-bg-2" style="margin-top: 20rpx;"></view>
				<view  class="">
					<view @tap="toChild()" class="content" style="margin-top: 20rpx;display: flex;">
						<view class="">
							<view class="">
								<image class="o-list-img" src="../../static/pic.png" mode=""></image>
							</view>
							<view class="" style="text-align: center;">
								x1
							</view>
						</view>
						
						<view class="">
							<view class="">
								<image class="o-list-img" src="../../static/pic.png" mode=""></image>
							</view>
							<view class="" style="text-align: center;">
								x1
							</view>
						</view>
						
						<view class="">
							<view class="">
								<image class="o-list-img" src="../../static/pic.png" mode=""></image>
							</view>
							<view class="" style="text-align: center;">
								x1
							</view>
						</view>
						
						<view class="" style="">
							<view class="">
								<image class="o-list-img" src="../../static/pic.png" mode=""></image>
							</view>
							<view class="" style="text-align: center;">
								x1
							</view>
						</view>
					
						<view class="" style="position: relative;top: 30rpx;">
							<image style="width: 32rpx;height: 8rpx;position: relative;left: 10rpx;" src="../../static/pic1.png" mode="widthFix"></image>
							<view class="o-font-4">
								共9件
							</view>
						</view>
					
					</view>
					
					<view class="o-bg-2 m-margin-bottom" style="margin-top: 20rpx;"></view>
					
					<view class="content">
						<view class="" style="margin-bottom: 20rpx;">
							<text class=".o-font-4" style="margin-right: 20rpx;">交货日期：</text>
							<text class="o-font-5">2021-02-01</text>
						</view>
						<view class="" style="margin-bottom: 20rpx;">
							<text class=".o-font-4" style="margin-right: 20rpx;">最新环节：</text>
							<text class="o-font-5">运输中</text>
						</view>
						<view class="" style="margin-bottom: 20rpx;">
							<text class=".o-font-4" style="margin-right: 20rpx;">最新进度：</text>
							<text class="o-font-5">已装车运出</text>
						</view>
						<view class="" style="margin-bottom: 20rpx;">
							<text class=".o-font-4" style="margin-right: 20rpx;">更新时间：</text>
							<text class="o-font-5">2021-01-24 12:00:00</text>
						</view>
					</view>
					
					<view class="o-bg-2 m-margin-bottom" style="margin-top: 36rpx;"></view>
					
					<view class="content" style="display: flex;justify-content: space-between;margin-top: 20rpx;">
						<view class="o-font-6">
							查看详情
						</view>
						<view class="">
							<image style="width: 28rpx;height: 28rpx;" src="../../static/next.png" mode="widthFix"></image>
						</view>
					</view>
				</view>
				
			</view>
			
			<view style="margin-top: 20rpx;"></view>
			
			<view class="">
				<view class="content" style="margin-top: 20rpx;display: flex;justify-content: space-between;">
					<view class="">
						<image style="width: 44rpx;height: 56rpx;position: relative;top: 10rpx;" src="../../static/order-1.png" mode="widthFix"></image>
						<text class="o-font-2">子订单2</text>
					</view>
					<view class="o-font-3" style="padding-top: 10rpx;">
						备货中
					</view>
				</view>
				<view class="o-bg-2" style="margin-top: 20rpx;"></view>
				<view class="">
					<view @tap="toChild()" class="content" style="margin-top: 20rpx;display: flex;">
						<view class="">
							<view class="">
								<image class="o-list-img" src="../../static/pic.png" mode=""></image>
							</view>
							<view class="" style="text-align: center;">
								x1
							</view>
						</view>
						
						<view class="">
							<view class="">
								<image class="o-list-img" src="../../static/pic.png" mode=""></image>
							</view>
							<view class="" style="text-align: center;">
								x1
							</view>
						</view>
						
						<view class="">
							<view class="">
								<image class="o-list-img" src="../../static/pic.png" mode=""></image>
							</view>
							<view class="" style="text-align: center;">
								x1
							</view>
						</view>
						
						<view class="" style="">
							<view class="">
								<image class="o-list-img" src="../../static/pic.png" mode=""></image>
							</view>
							<view class="" style="text-align: center;">
								x1
							</view>
						</view>
					
						<view class="" style="position: relative;top: 30rpx;">
							<image style="width: 32rpx;height: 8rpx;position: relative;left: 10rpx;" src="../../static/pic1.png" mode="widthFix"></image>
							<view class="o-font-4">
								共9件
							</view>
						</view>
					
					</view>
					
					<view class="o-bg-2 m-margin-bottom" style="margin-top: 20rpx;"></view>
					
					<view class="content">
						<view class="" style="margin-bottom: 20rpx;">
							<text class=".o-font-4" style="margin-right: 20rpx;">交货日期：</text>
							<text class="o-font-5">2021-02-01</text>
						</view>
						<view class="" style="margin-bottom: 20rpx;">
							<text class=".o-font-4" style="margin-right: 20rpx;">最新环节：</text>
							<text class="o-font-5">运输中</text>
						</view>
						<view class="" style="margin-bottom: 20rpx;">
							<text class=".o-font-4" style="margin-right: 20rpx;">最新进度：</text>
							<text class="o-font-5">已装车运出</text>
						</view>
						<view class="" style="margin-bottom: 20rpx;">
							<text class=".o-font-4" style="margin-right: 20rpx;">更新时间：</text>
							<text class="o-font-5">2021-01-24 12:00:00</text>
						</view>
					</view>
					
					<view class="o-bg-2 m-margin-bottom" style="margin-top: 36rpx;"></view>
					
					<view class="content" style="display: flex;justify-content: space-between;margin-top: 20rpx;">
						<view class="o-font-6">
							查看详情
						</view>
						<view class="">
							<image style="width: 28rpx;height: 28rpx;" src="../../static/next.png" mode="widthFix"></image>
						</view>
					</view>
				</view>
				
			</view>
			
			<view class="o-bg-4" style="margin-top: 20rpx;"></view>
			
			<view class="o-bottom content" style="display: flex;">
				<view>
					<view style="display: flex;margin-top: 30rpx;">
						<text class="o-font-9" style="margin-right: 20rpx;">数量：9</text>
						<text  class="o-font-9" style="margin-right: 20rpx;">总额(70%)：</text>
						<text class="o-font-7" style="margin-right: 20rpx;">¥1400.00</text>
					</view>
				</view>
				<view >
					<button @click="toPay()" class="" type="default" style="background-color: #1B4098; width: 192rpx;height: 96rpx;">
						<text class="o-font-8"   style="position: relative;top30rpx">立即支付</text>
						</button>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			toBack:function(){
				console.log(1)
				uni.navigateBack({
					delta: 1 //返回上一级页面
				})
			},
			toChild:function(){
				uni.navigateTo({
					url:'../product-list/product-list'
				})
			},
			toPay:function(){
				console.log(1)
				uni.navigateTo({
					url:'../pay/pay'
				})
			},		
		}
	}
</script>

<style lang="less" scoped>
@import url("../../style.less");
@import url("order-compute-child.less");

</style>
